package Level01_one;

public class Cat {
    //请使用代码描述： 2 岁的棕色加菲猫,在抓老鼠
    private int age;
    private String color;
    private String name;
    public void catchMouse(){
        System.out.println(getAge()+"岁的"+getColor()+getName()+"猫,在抓老鼠");
    }

    public Cat(int age, String color, String name) {
        this.age = age;
        this.color = color;
        this.name = name;
    }
    public Cat(){
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
